package com.itheima;


import com.itheima.dao.OrderDao;
import com.itheima.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//通过构造方法实例化
public class App2 {
        public static void main(String[] args) {
            ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
            OrderDao orderDao = (OrderDao) ctx.getBean("orderDao");
            orderDao.save();
           /* factory setup 实例工厂的方式实例化....
            order dao save 方法在执行 ...*/
        }

}
